package com.itheima.service;


import com.itheima.pojo.SmsFlashPromotionSession;

import java.util.List;
import java.util.Map;

public interface SmsFlashPromotionSessionApi {


    void deleteByIds(Integer id);

    boolean save(SmsFlashPromotionSession smsFlashPromotionSession);

    void updateStatus(Integer status, Integer id);

    List<SmsFlashPromotionSession> listAll();

    SmsFlashPromotionSession findById(Integer id);

    void updateSession(Integer id, SmsFlashPromotionSession smsFlashPromotionSession);


    /**
     * 获取全部可选场次及其数量
     * @param flashPromotionId
     * @return
     */
    Map selectList(Integer flashPromotionId);
}
